<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/19
 * Time: 16:01
 * @author: yfl
 * @QQ: 554665488
 * @description:OA后台控制器
 * @time:
 */

namespace app\admin\controller;


use app\oa\controller\CommonController;
use think\Request;
use think\Session;

class BaseController extends CommonController
{

    public function __construct(Request $request = null)
    {
        parent::__construct($request);
//                halt(Session::get('admin_user','admin')->uid);
        if (!is_object(Session::get('admin_user', 'admin'))) {
            $this->redirect('/Alogin');
        }
    }
}